package edu.ncst.baseweb.dao.web;

import edu.ncst.baseweb.common.RequestPage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "lab_visit")
public class LabVisit extends RequestPage {
    //实验室参观ID
    @TableId(value = "id")
    private Integer id;
    //名称
    @TableField(value = "name")
    private String name;
    //内容
    @TableField(value = "text")
    private String text;
    //开始时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "stime")
    private Date stime;
    //结束时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @TableField(value = "etime")
    private Date etime;

    //实验室参观ID
    public static final String COL_ID = "id";
    //名称
    public static final String COL_NAME = "name";
    //内容
    public static final String COL_TEXT = "text";
//    //开始时间
//    public static final String COL_STIME = "stime";
//    //结束时间
//    public static final String COL_ETIME = "etime";
}